Optimal. Leaf size=35 \[ \frac{1}{2} \tan ^{-1}\left (\frac{\tan (x)}{\sqrt{-\sec ^2(x)}}\right )-\frac{1}{2} \tan (x) \sqrt{-\sec ^2(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0217918, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {3657, 4122, 195, 217, 203} \[ \frac{1}{2} \tan ^{-1}\left (\frac{\tan (x)}{\sqrt{-\sec ^2(x)}}\right )-\frac{1}{2} \tan (x) \sqrt{-\sec ^2(x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4122
Rule 195
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \left (-1-\tan ^2(x)\right )^{3/2} \, dx &=\int \left (-\sec ^2(x)\right )^{3/2} \, dx\\ &=-\operatorname{Subst}\left (\int \sqrt{-1-x^2} \, dx,x,\tan (x)\right )\\ &=-\frac{1}{2} \sqrt{-\sec ^2(x)} \tan (x)+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{-1-x^2}} \, dx,x,\tan (x)\right )\\ &=-\frac{1}{2} \sqrt{-\sec ^2(x)} \tan (x)+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\frac{\tan (x)}{\sqrt{-\sec ^2(x)}}\right )\\ &=\frac{1}{2} \tan ^{-1}\left (\frac{\tan (x)}{\sqrt{-\sec ^2(x)}}\right )-\frac{1}{2} \sqrt{-\sec ^2(x)} \tan (x)\\ \end{align*}
Mathematica [B] time = 0.0671557, size = 72, normalized size = 2.06 \[ \frac{1}{4} \cos (x) \sqrt{-\sec ^2(x)} \left (\frac{1}{\sin (x)-1}+\frac{1}{\left (\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )\right )^2}+2 \log \left (\cos \left (\frac{x}{2}\right )-\sin \left (\frac{x}{2}\right )\right )-2 \log \left (\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 32, normalized size = 0.9 \begin{align*} -{\frac{\tan \left ( x \right ) }{2}\sqrt{-1- \left ( \tan \left ( x \right ) \right ) ^{2}}}+{\frac{1}{2}\arctan \left ({\tan \left ( x \right ){\frac{1}{\sqrt{-1- \left ( \tan \left ( x \right ) \right ) ^{2}}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.59439, size = 27, normalized size = 0.77 \begin{align*} -\frac{1}{2} \, \sqrt{-\tan \left (x\right )^{2} - 1} \tan \left (x\right ) - \frac{1}{2} i \, \operatorname{arsinh}\left (\tan \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.85355, size = 227, normalized size = 6.49 \begin{align*} \frac{{\left (-i \, e^{\left (4 i \, x\right )} - 2 i \, e^{\left (2 i \, x\right )} - i\right )} \log \left (e^{\left (i \, x\right )} + i\right ) +{\left (i \, e^{\left (4 i \, x\right )} + 2 i \, e^{\left (2 i \, x\right )} + i\right )} \log \left (e^{\left (i \, x\right )} - i\right ) - 2 \, e^{\left (3 i \, x\right )} + 2 \, e^{\left (i \, x\right )}}{2 \,{\left (e^{\left (4 i \, x\right )} + 2 \, e^{\left (2 i \, x\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (- \tan ^{2}{\left (x \right )} - 1\right )^{\frac{3}{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.09418, size = 27, normalized size = 0.77 \begin{align*} -\frac{1}{2} i \, \sqrt{\tan \left (x\right )^{2} + 1} \tan \left (x\right ) - \frac{1}{2} i \, \arcsin \left (i \, \tan \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]